<script type="text/javascript">
$(document).ready(function(){
	$('.date-pick').datePicker({startDate:'1996.01.01'});
	$("#fourth").children("ul").children("li").each(function(){
        $(this).click(function(){
           var num = $(this).attr("lang");
           $("#fourth").children("ul").children("li").removeClass('cur');
           $(this).addClass('cur');
           $(".charts").hide();
           if(num==0){
           	$("#category_chart").show();
           	$("#search").show();
           }else if(num==1){
           	$("#search").hide();
               $("#model_chart").show();
           }else{
           	$("#search").hide();
           	$("#code_chart").show();
           }
        })       
   })
})
swfobject.embedSWF(
"<?php echo base_url(); ?>/img/open-flash-chart.swf", "mod_chart",
"828", "228", "9.0.0", "expressInstall.swf",
{"data-file":"<?php echo  base_url(); ?>/chart/complete_line"} );

</script>
<style>
  .sum{clear:both;}
  .sum li{list-style:none;float:left;width:150px;line-height:35px;height:35px;cursor:pointer;margin-bottom:5px;font-size:14px;}
  .sum2{clear:both;}
  .sum2 li{list-style:none;float:left;width:150px;line-height:15px;height:15px;cursor:pointer;margin-bottom:15px;font-size:12px;}

  .cur{color:red;font-weight:600;font-size:16px;}
</style>
<div id="center-column">
  <div class="sum"><ul><li  lang="0"><a href="<?php echo  base_url();?>chart/index" >数据总量统计</a></li><li lang="1" ><a href="<?php echo  base_url();?>chart/send_total" >资料发放统计</a></li><li lang="2" ><a href="<?php echo  base_url();?>chart/update_total" >资料更新统计</a></li><li lang="3"><a  class="cur" href="<?php echo  base_url();?>chart/complete_total" >成套资料统计</a></li></ul></div>
  <div class="sum2" id="fourth"><ul><li  class="cur" lang="0">按型代号</li><li lang="1" >按套别</li></ul></div> 
       <div style="clear:both;height:228px; min-width:228px; margin-bottom:10px;margin-top:10px;" id="category_chart" class="charts">
                <div id="mod_chart">
                   
                </div>
                </div>
   <div style="height:228px; margin-top:10px;display:none;clear:both;" id="model_chart" class="charts">
           <?php foreach($mods as $k=>$val){?>
              <script>

                swfobject.embedSWF(
              		"<?php echo base_url(); ?>/img/open-flash-chart.swf", "mod_chart<?php echo $val->mod_id;?>",
              		"478", "228", "9.0.0", "expressInstall.swf",
              		{"data-file":"<?php echo base_url(); ?>/chart/complete_code/<?php echo $val->mod_id;?>"} );
              </script>
             <div id="mod_chart<?php echo $val->mod_id;?>" style="float:left;">
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                        width="500"
                        height="250" id="graph-2" align="middle">
                     
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="movie" value="<?php echo base_url(); ?>/img/open-flash-chart.swf" />
                        <param name="quality" value="high" />
                        <embed src="<?php echo base_url(); ?>/img/open-flash-chart.swf"
                               quality="high"
                               bgcolor="#FFFFFF"
                               width="500"
                               height="250"
                               name="open-flash-chart"
                               align="middle"
                               allowScriptAccess="sameDomain"
                               type="application/x-shockwave-flash"
                               pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </div>
          <?php }?>
          </div>             
		</div>
	</div>
	<div id="footer"></div>
</div>



</body>
</html>
